<template>
    <div>
        <van-nav-bar title="首页" />
        <van-search v-model="value" shape="round" background="#4fc08d" placeholder="请输入搜索关键词" @click="onSbount"/>
        <van-swipe :autoplay="3000" lazy-render>
            <van-swipe-item v-for="image in images" :key="image">
                <img :src="image" style="width: 80%; height: 200px;"/>
            </van-swipe-item>
        </van-swipe>

    </div>
</template>

<script setup>
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',
];
import router from '@/router';
import { ref } from 'vue';
let value=ref([])
const onSbount=()=>{
    router.push('/qsearch')
}

</script>

<style lang="scss" scoped></style>